package com.infore.statisticsAndAlarm.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * The persistent class for the WEEK_DATA database table.
 * 周统计数据
 */
@Entity
@Table(name="WEEK_DATA")
@NamedQuery(name="WeekData.findAll", query="SELECT w FROM WeekData w")
public class WeekData implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="WEEK_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String weekId;

	@Temporal(TemporalType.DATE)
	@Column(name="BEGIN_TIME")
	private Date beginTime;

	@Column(name="DATA_FLAG")
	private String dataFlag;

	@Column(name="DATA_VALUE_AVG")
	private String dataValueAvg;

	@Column(name="DATA_VALUE_MAX")
	private String dataValueMax;

	@Column(name="DATA_VALUE_MIN")
	private String dataValueMin;

	@Column(name="DATA_WEEK")
	private String dataWeek;

	@Column(name="DATA_YEAR")
	private String dataYear;

	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") 
	@Column(name="END_TIME")
	private Date endTime;

	@Column(name="FACTOR_CODE")
	private String factorCode;

	@Column(name="REAL_NUM")
	private String realNum;

	@Column(name="STANDARD_NUM")
	private String standardNum;

	@Column(name="STATION_CODE")
	private String stationCode;

	@Column(name="WATER_QUALITY")
	private String waterQuality;

	public WeekData() {
	}

	public String getWeekId() {
		return this.weekId;
	}

	public void setWeekId(String weekId) {
		this.weekId = weekId;
	}

	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public String getDataFlag() {
		return this.dataFlag;
	}

	public void setDataFlag(String dataFlag) {
		this.dataFlag = dataFlag;
	}

	public String getDataValueAvg() {
		return this.dataValueAvg;
	}

	public void setDataValueAvg(String dataValueAvg) {
		this.dataValueAvg = dataValueAvg;
	}

	public String getDataValueMax() {
		return this.dataValueMax;
	}

	public void setDataValueMax(String dataValueMax) {
		this.dataValueMax = dataValueMax;
	}

	public String getDataValueMin() {
		return this.dataValueMin;
	}

	public void setDataValueMin(String dataValueMin) {
		this.dataValueMin = dataValueMin;
	}

	public String getDataWeek() {
		return this.dataWeek;
	}

	public void setDataWeek(String dataWeek) {
		this.dataWeek = dataWeek;
	}

	public String getDataYear() {
		return this.dataYear;
	}

	public void setDataYear(String dataYear) {
		this.dataYear = dataYear;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getFactorCode() {
		return this.factorCode;
	}

	public void setFactorCode(String factorCode) {
		this.factorCode = factorCode;
	}

	public String getRealNum() {
		return this.realNum;
	}

	public void setRealNum(String realNum) {
		this.realNum = realNum;
	}

	public String getStandardNum() {
		return this.standardNum;
	}

	public void setStandardNum(String standardNum) {
		this.standardNum = standardNum;
	}

	public String getStationCode() {
		return this.stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getWaterQuality() {
		return this.waterQuality;
	}

	public void setWaterQuality(String waterQuality) {
		this.waterQuality = waterQuality;
	}

}